/**
 * 
 */
package uk.co.altv.simpledb.connector;

import java.io.IOException;
import java.net.URL;

import uk.co.altv.simpledb.IReply;

/**
 * @author niki
 *
 */
public interface IConnector {

	/**
	 * @return
	 */
	public boolean canDoPost();

	/**
	 * @return
	 */
	public boolean canDoGet();

	/**
	 * @param url
	 * @return
	 * @throws IOException 
	 */
	public IReply doGet(URL url) throws IOException;

	/**
	 * @param url
	 * @param postBody
	 * @return
	 */
	public IReply doPost(URL url, String postBody) throws IOException;

}
